﻿<%@ Page Language="C#" MasterPageFile="~/GUI/SiteMasterPage.Master" AutoEventWireup="true" CodeBehind="DeleteDocument.aspx.cs" Inherits="wdss.GUI.DeleteDocument" Title="Delete Document" %>
<asp:Content ID="content2" ContentPlaceHolderID="content1" runat="server">
     <br /><br />
    <table align =center>
	    <tr>
	    <td>
	    <asp:Label ID = welcome_lbl runat =server Font-Names = "Arial Rounded MT Bold" 
	    ForeColor ="white" Text="Welcome" Font-Size="20px"></asp:Label>
	    </td>
	    <td>
	    <asp:Label ID = username_lbl runat =server Font-Names = "Arial Rounded MT Bold" 
	    ForeColor ="white" Text="" Font-Size="20px"></asp:Label>
	    </td>
	    <td>
	    <asp:Label ID = sym_lbl runat =server Font-Names = "Arial Rounded MT Bold" 
	    ForeColor ="white" Text="...!" Font-Size="20px"></asp:Label>
	    </td>
	    </tr></table>
	    <br />
     <div class="heading">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <table align=center>
                <asp:Label ID="Label1" runat="server"  Text="Delete Document" Font-Bold="True" 
                Font-Names="Arial Rounded MT Bold" Font-Size="XX-Large" ForeColor="White" 
                    Width="313px"></asp:Label>
         </table>
    </div>
		<left>
         
            <table  border=2>
                <tr>
                    <td align="left" >
                         <asp:Label ID="OldPasswordlbl" Text="Choose Document" ForeColor="White" 
                runat=server Font-Names="Arial Rounded MT Bold"></asp:Label>
                     </td>
                     <td align="left">
                        <asp:DropDownList ID="ddl_ChooseDocument" runat="server" 
                            DataSourceID="wdm_authored_documents" DataTextField="doc_title" 
                            DataValueField="doc_id" ForeColor="Black"></asp:DropDownList>
                        <asp:SqlDataSource ID="wdm_authored_documents" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:aspnetdbConnectionString %>" 
                            SelectCommand="sp_GetAuthoredDocuments" SelectCommandType="StoredProcedure" 
                             ProviderName="System.Data.SqlClient">
                            <SelectParameters>
                                <asp:SessionParameter DefaultValue="0" Name="par_userid" SessionField="userid" 
                                    Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
            <tr>
                    <td align="left">
                          <asp:CheckBox ID="cb_Confirm" runat="server" Visible="true" Text="Confirm Deletion." ForeColor="White" 
                Font-Names="Arial Rounded MT Bold" />
                    </td>
                    <td align=right>
                         <asp:Button ID="btn_Delete" Text="Delete Document" runat=server BackColor="#14263A" 
                BorderStyle="Outset" Font-Names="Arial Rounded MT Bold" ForeColor="White" OnClick="btn_Delete_Click" />
                     </td>
            </tr>
            <tr>
            <td colspan=2 align = center><asp:Label id="lbl_Error" runat="server" Visible="false" ForeColor="Red"></asp:Label></td>
                    
            </tr>
            
            </table>
                   
           
       
        
   </left>

</asp:Content>

